package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InventoryCheckInfoMapper;
import com.ruoyi.system.domain.InventoryCheckInfo;
import com.ruoyi.system.service.IInventoryCheckInfoService;

/**
 * 盘点明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-13
 */
@Service
public class InventoryCheckInfoServiceImpl implements IInventoryCheckInfoService 
{
    @Autowired
    private InventoryCheckInfoMapper inventoryCheckInfoMapper;

    /**
     * 查询盘点明细
     * 
     * @param id 盘点明细主键
     * @return 盘点明细
     */
    @Override
    public InventoryCheckInfo selectInventoryCheckInfoById(Long id)
    {
        return inventoryCheckInfoMapper.selectInventoryCheckInfoById(id);
    }

    /**
     * 查询盘点明细列表
     * 
     * @param inventoryCheckInfo 盘点明细
     * @return 盘点明细
     */
    @Override
    public List<InventoryCheckInfo> selectInventoryCheckInfoList(InventoryCheckInfo inventoryCheckInfo)
    {
        return inventoryCheckInfoMapper.selectInventoryCheckInfoList(inventoryCheckInfo);
    }

    /**
     * 新增盘点明细
     * 
     * @param inventoryCheckInfo 盘点明细
     * @return 结果
     */
    @Override
    public int insertInventoryCheckInfo(InventoryCheckInfo inventoryCheckInfo)
    {
        return inventoryCheckInfoMapper.insertInventoryCheckInfo(inventoryCheckInfo);
    }

    /**
     * 修改盘点明细
     * 
     * @param inventoryCheckInfo 盘点明细
     * @return 结果
     */
    @Override
    public int updateInventoryCheckInfo(InventoryCheckInfo inventoryCheckInfo)
    {
        return inventoryCheckInfoMapper.updateInventoryCheckInfo(inventoryCheckInfo);
    }

    /**
     * 批量删除盘点明细
     * 
     * @param ids 需要删除的盘点明细主键
     * @return 结果
     */
    @Override
    public int deleteInventoryCheckInfoByIds(Long[] ids)
    {
        return inventoryCheckInfoMapper.deleteInventoryCheckInfoByIds(ids);
    }

    /**
     * 删除盘点明细信息
     * 
     * @param id 盘点明细主键
     * @return 结果
     */
    @Override
    public int deleteInventoryCheckInfoById(Long id)
    {
        return inventoryCheckInfoMapper.deleteInventoryCheckInfoById(id);
    }
}
